package com.backend.mapper;

import com.backend.common.AddAss;
import com.backend.common.AdminForm;
import com.backend.common.GetAllUserContion;
import com.backend.common.UserPassword;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AdminMapper {

    List<Map<String,String>> lookUpAllUser();

    Integer updateAdminPassword(UserPassword userPassword);

    Integer AuditActionStatus(@Param("actionId")String actionId,@Param("status")String status);

    Integer addAss(AddAss addAss);

    Integer deleteAssById(String assId);

    Integer deleteAdminByAssId(String assId);

    Map<String,String> getAssAdmin(String assAdminId);

    List<Map<String,String>> getAllAss();

    Integer insertAssAdmin(@Param("adminId") String adminId,@Param("assId") String assId);

    List<Map<String,String>> getAssUserByAssId(GetAllUserContion getAllUserContion);

    Integer AssDeleteUserById(@Param("stuId")String stuId,@Param("assId")String assId);

    Integer AssUpdateUserDef(@Param("stuId")String stuId,@Param("assId")String assId,@Param("status")String status);

    Map<String,String> adminLogin(AdminForm adminForm);
}
